<?php
    $slide = new Default_Model_Slide();
    $result = $slide->getListItem();
    if(count($result) > 0) :
?>
<script type="text/javascript">
  $(window).load(function() {
    $('.flexslider').flexslider();
  });
</script>
<div class="banner">
    <div class="flexslider">
      <ul class="slides">
        <?php foreach($result as $value) : ?>
        <li>
          <img src="<?php echo $this->baseUrl('/public/files/slide/').$value['image']; ?>" />
        </li>
        <?php endforeach; ?>
      </ul>
    </div>
</div>
<?php endif; ?>